package pro.lingwu.station.dto.db;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.sql.Timestamp;

/**
 * @author @lingwu
 * @date created in 2021/11/15
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("BusNo")
public class BusNo {

    private String id;

    @NotNull
    @Positive
    @ApiModelProperty("本车次的价格（单位：分）")
    private Long price;

    @NotNull
    @Size(min = 8, max = 8)
    private String busNum;

    @NotNull
    @Size(min = 10, max = 15)
    private String driverId;

    @NotNull
    @Positive
    private Long startStation;

    @NotNull
    @Positive
    private Long endStation;

    private Timestamp fromTime;
    private Timestamp toTime;
    private Timestamp realFrom;
    private Timestamp realTo;

    private Station startStationName;
    private Station endStationName;

    private Bus bus;

}
